package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 登录日志表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_login_log")
@Schema(name = "LoginLog对象", description = "登录日志表")
public class LoginLog extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "登录的IP地址")
    private String ipaddr;

    @Schema(description = "登录状态（0：可用，1：不可用，默认0）")
    private Boolean status;

    @Schema(description = "提示信息")
    private String msg;

    @Schema(description = "登录时间")
    private LocalDateTime accessTime;
}
